#include <iostream>
#include <qfl/text/ini.hpp>

using namespace std;

int main()
{
	typedef qfl::text::basic_ini<char,std::char_traits<char> > ini_type;

	string ini_str("[hello]\na=1\nb=2");

	ini_type ini(ini_str);

	ini.set_value("hello","a","22");

	cout<<ini.get_value("Hello","A","55555").c_str();
	cout<<ini.get_value("hello","c","333").c_str();
	cout<<ini.get_value("works","pi","hh").c_str();

	ini.set_value("hello","d","888888888");

	int i=0;

	return 0;
}
